package com.shujia.util

import java.sql.{Connection, DriverManager}

object JdbcUtil {

  def getConnection: Connection = {
    //加器驱动
    Class.forName(Config.getString("jdbc.driver"))
    //创建链接
    DriverManager.getConnection(
      Config.getString("jdbc.url"),
      Config.getString("jdbc.username"),
      Config.getString("jdbc.password"))

  }
}
